from django.urls import re_path, path, include
from rest_framework import routers
from . import views

router = routers.DefaultRouter()


router.register(r"version", views.AllinpayPlaceVersionViewSet, basename="00场所版本")
router.register(
    r"myviews", views.SyncAllinpayPlaceviewsListSetViewSet, basename="10场所视图"
)

router.register(r"myhards", views.SyncAllinpayHardwareListSetViewSet, basename="11场所资产")
router.register(r"mymember", views.SyncAllinpayMemberListViewSet, basename="12场所会员")
router.register(r"mycallme", views.SyncAllinpayCallmeListViewSet, basename="13场所呼叫")
router.register(r"myinter", views.SyncAllinpayStaffinterListViewSet, basename="14员工积分")

router.register(
    r"interlog", views.SyncAllinpayStaffinterLogViewSet, basename="15员工积分记录"
)
router.register(
    r"vipinter", views.SyncAllinpayMemberinterListViewSet, basename="16会员积分"
)
router.register(
    r"vipinterlog", views.SyncAllinpayMemberinterLogsViewSet, basename="17会员积分记录"
)
router.register(
    r"vipmoney", views.SyncAllinpayMembermoneyListViewSet, basename="18会员钱包"
)
router.register(
    r"vipmoneylog", views.SyncAllinpayMembermoneyLogsViewSet, basename="19会员钱包记录"
)

router.register(r"wechat", views.SyncWechatTemplateViewSet, basename="40公众号模板消息")


urlpatterns = [
    path("", include(router.urls)),
]
